package com.example.elasticsearchdemo.bean;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

@Data
@Document(indexName = "user")
public class User {

  @Id
  private Integer id;
  private String username;
  private String nickname;
  private String sex;
}
